Skip to main content

tsNetSetProxy

Type

command

Summary

Enable or disable the use of a proxy for networking transfers.

Syntax

tsNetSetProxy <pProxyURL>, <pNoProxy>, <pUsername>, <pPassword>

Description

Note that setting a proxy will affect all protocols, not just HTTP.

Parameters

NameTypeDescription

pProxyURL

The hostname or IP address of the proxy server to be used for all networking connections. Can be prefixed with socks4://, socks4a://, socks5://, socks5h:// or http:// to specify the type of proxy to use. If there is no protocol specified, HTTP will be assumed. The use of socks5h:// indicates that the proxy will do the resolving of hostnames. Append :port to specify the port number to be used, otherwise port 1080 will be assumed.

pNoProxy

Can be a comma separated list of host names that should bypass the proxy. Host names can include a port number after a ':'.

pUsername

The username to authenticate with the proxy server. Set to empty to disable authentication.

pPassword

The password to authenticate with the proxy server. Set to empty to disable authentication.

Examples

tsNetSetProxy "http://proxy.mydomain.com:1080" \
, "local.mydomain.com,intranet.mydomain.com" \
, "proxyusername", "proxypassword"
tsNetSetProxy ""

library: tsNet

Compatibility and Support

Introduced

LiveCode 8.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?